//
//  NavigationView.h

//
//  Created by  on 13-12-30.
//  Copyright (c) 2013年 . All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol OANavigationViewDelegate;

@interface OANavigationView : UIImageView
{
    UIButton *left;
    
    UIButton *right;
    
    UILabel *title;
    UILabel*rightLabel;
    
    __unsafe_unretained id<OANavigationViewDelegate> delegate;
    
}
@property (nonatomic, retain) UILabel *title;
@property(nonatomic,retain) UIButton *right;
@property(nonatomic,strong)UIImageView*yuan;
@property(nonatomic,retain)UIButton*left;
@property(nonatomic,assign)BOOL opaques;
@property(nonatomic,retain)UILabel*rightLabel;
@property (nonatomic, assign) id<OANavigationViewDelegate> delegate;

//创建初始化导航
//lImg: 左按钮图片名称
//rImg: 右按钮图片名称
//content: 页面标题
- (void)setleftBtn:(NSString *)lImg andlD:(NSString*)ldImag
          rightBtn:(NSString *)rImg andrD:(NSString*)rDImag title:(NSString *)content;
@end


@protocol OANavigationViewDelegate <NSObject>

@optional
//导航左按钮触发事件
- (void)leftBtnAction;

//导航右按钮触发事件
- (void)rightBtnAction;

@end